package com.write.Quill.data;

import java.io.File;
import java.util.HashMap;

import cx.hell.android.lib.pdf.PDF;

public class PDFManager {
	private static final HashMap<String,PDF> PDFMap = new HashMap<String,PDF>();
	
	public static PDF getPDF(String filename){
		if (PDFMap.containsKey(filename))
			return PDFMap.get(filename);
		else {
			PDF pdf = new PDF(new File(filename),2);
			// should test if pdf is null here
			PDFMap.put(filename, pdf);
			return pdf;
		}
	}

}